@function px2rem($px) {
	$rem: 37.5;
	@return ($px/$rem/2) + rem;
}

@function halfpx($px) {
	@return $px / 2 + px;
}

@function ipad_px2rem($px) {
	$rem: 37.5 * 2048 / 750;
	@return ($px/$rem/2) + rem;
}

@function x15($num) {
	@return $num * 1.5 / 2 + px;
}

@mixin scolling {
	-webkit-overflow-scrolling: touch;
}

@mixin numberOfLines($number) {
	-webkit-box-orient: vertical;
	-webkit-line-clamp: $number;
	display: -webkit-box;
	overflow: hidden;
}

/* 
	设置背景图
*/
@mixin bgPic($url) {
	background: $url center center no-repeat;
	background-size: 100% 100%;
}
/* 
	设置宽高
*/
@mixin wh($w, $h) {
	height: $h + px;
	width: $w + px;
}

/* 
	flex cener cener
*/
@mixin flexCenterCenter {
	display: flex;
	justify-content: center;
	align-items: center;
}

@mixin flexRowCenter {
	display: flex;
	align-items: center;
	flex-direction: column;
}
@mixin flexColumnCenter {

	display: flex;
	flex-direction: column;
	justify-content: center;
}

/*-start:常用flex-*/
.jmfe-flex-l,
.jmfe-flex-c,
.jmfe-flex-r,
.jmfe-flex-t,
.jmfe-flex-m,
.jmfe-flex-b {
	align-items: center;
	display: flex;
}

.jmfe-flex-l,
.jmfe-flex-c,
.jmfe-flex-r {
	flex-direction: row;
}

.jmfe-flex-t,
.jmfe-flex-m,
.jmfe-flex-b {
	flex-direction: column;
}

.jmfe-flex-l,
.jmfe-flex-t {
	justify-content: flex-start;
}

.jmfe-flex-c,
.jmfe-flex-m {
	justify-content: center;
}

.jmfe-flex-r,
.jmfe-flex-b {
	justify-content: flex-end;
}

/*-end:常用flex-*/

.common-dialog{
	width: 100vw;
  	height: 100%;
  	background-color: rgba(0, 0, 0, 0.8);
  	position: fixed;
  	top: 0;
    right: 0;
    bottom: 0;
    left: 0;
  	z-index: 999;
}

.common-btn {
	@include wh(300, 60);
    background-image: linear-gradient(180deg, #ff2b62 0%, #f11141 100%);
    border-radius: 27px;
    font-size: 28px;
    color: #ffffff;
    text-align: center;
    line-height: 60px;
}